<?php
/**
 * Created by PhpStorm.
 * User: yuyiwen
 * Date: 2018/10/25
 * Time: 下午4:45
 */

namespace app\admin\validate;


use think\Validate;

class Ad extends Validate
{
    protected $rule = [
        'ord'  =>  'require|number',
        'url' =>  'require',
    ];

    protected $message = [
        'ord.require' => '排序不能为空',
        'url.require' => '跳转地址不能为空',
        'ord.number'=> '排序必须是数字',
    ];

}